import React, { Component } from 'react'

class Tips extends Component {
  static propTypes = {
    text: React.PropTypes.string,
    isShow: React.PropTypes.bool
  }
  render() {
    let dom = this.props.isShow ? <div className='tips' style={{ fontSize: '0.5rem', textAlign: 'center' }}>{this.props.text}</div> : ''
    return (
      <div>
        {dom}
      </div>
    )
  }
}

export default Tips
